package com.joe.runaway.constant;


/**
 * @description: 文件上传相关常量
 **/
public class CommonConstants {

    /**
     * 通用结果(成功、失败)
     */
    public static final String RESULT_SUCCESS = "SUCCESS";

    public static final String RESULT_FAIL = "FAIL";

    public static final String RESULT_SUCCESS_MSG = "成功";

    public static final String RESULT_FAIL_MSG = "失败";

    //状态0-启用
    public static final Integer USER_STATE_ABLE = 0;

    //状态0-禁用
    public static final Integer USER_STATE_UNABLE = 1;

    //默认密码
    public static final String USER_DEFAULT_PASSWORD = "123456";

    //返回码-200
    public static final String RETURN_CODE_200 = "200";

    //返回码-500
    public static final String RETURN_CODE_500 = "500";


    /**
     * 获取微信支付二维码接口地址(Native下单API)
     */
    public static final String WECHAT_CODE_URL = "https://api.mch.weixin.qq.com/v3/pay/transactions/native";

    /**
     * 微信支付订单查询接口地址
     */
    public static final String WECHAT_QUERY_ORDER_URL = "https://api.mch.weixin.qq.com/v3/pay/transactions/id/{transaction_id}";

    /**
     * 内部订单查询接口地址
     */
    public static final String INNER_QUERY_ORDER_URL = "https://api.mch.weixin.qq.com/v3/pay/transactions/out-trade-no/";

    /**
     * 关闭订单接口地址
     */
    public static final String WECHAT_CLOSE_ORDER_URL = "https://api.mch.weixin.qq.com/v3/pay/transactions/out-trade-no/{out_trade_no}/close";

    /**
     * 退款接口地址
     */
    public static final String WECHAT_REFUND_URL = "https://api.mch.weixin.qq.com/v3/refund/domestic/refunds";

    /**
     * 退款查询接口地址
     */
    public static final String WECHAT_REFUND_QUERY_URL = "https://api.mch.weixin.qq.com/v3/refund/domestic/refunds/{out_refund_no}";

    /**
     * 交易类型-扫码支付
     */
    public static final String WECHAT_TRADE_TYPE_NATIVE = "NATIVE";

    /**
     * 微信交易状态-支付成功、转入退款、未支付、已关闭、订单超时关闭(自定义)
     */
    public static final String WECHAT_TRADE_STATE_SUCCESS = "SUCCESS";
    public static final String WECHAT_TRADE_STATE_REFUND  = "REFUND";
    public static final String WECHAT_TRADE_STATE_NOTPAY  = "NOTPAY";
    public static final String WECHAT_TRADE_STATE_CLOSED  = "CLOSED";
    public static final String WECHAT_TRADE_STATE_EXPIRE  = "EXPIRE";

    /**
     * 微信交易状态描述-支付成功、转入退款、未支付、已关闭、订单超时关闭(自定义)
     */
    public static final String WECHAT_TRADE_STATE_SUCCESS_DESC = "支付成功";
    public static final String WECHAT_TRADE_STATE_REFUND_DESC  = "转入退款";
    public static final String WECHAT_TRADE_STATE_NOTPAY_DESC  = "订单未支付";
    public static final String WECHAT_TRADE_STATE_CLOSED_DESC  = "订单已关闭";
    public static final String WECHAT_TRADE_STATE_EXPIRE_DESC  = "订单超时关闭";

    /**
     * 退款状态
     * SUCCESS：退款成功
     * CLOSED：退款关闭
     * PROCESSING：退款处理中
     * ABNORMAL：退款异常
     */
    public static final String WECHAT_REFUND_STATE_SUCCESS    = "SUCCESS";
    public static final String WECHAT_REFUND_STATE_CLOSED     = "CLOSED";
    public static final String WECHAT_REFUND_STATE_PROCESSING = "PROCESSING";
    public static final String WECHAT_REFUND_STATE_ABNORMAL   = "ABNORMAL";

    /**
     * 退款资金来源
     */
    public static final String WECHAT_FUNDS_ACCOUNT = "AVAILABLE";

    /**
     * 加解密密鈅
     */
    public static final String REQ_ENCODE_KEY = "zdw_zhifu";

    /**
     * 自动创建禅道账号失败
     */
    public static final String INIT_ZENTAO_ACCOUNT_ERROR = "自动创建禅道账号失败,请联系管理员!";

}

